package com.wl.dzt.sys.controller.view;

import com.wl.dzt.sys.controller.result.ActionResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author wl_code@163.com
 * @version 1.0
 * @date 2018/7/5/005
 * @description 界面视图
 * 用于输出界面所属格式数据
 */
@FunctionalInterface
public interface View {

    /**
     * <b>执行视图</b>
     * <p>
     * 根据逻辑执行所需逻辑<br/>
     * 返回值表示请求转发的地址
     * </p>
     *
     * @param actionResult
     * @param response
     * @param request
     * @return 转发地址
     */
    String doView(ActionResult actionResult, HttpServletResponse response, HttpServletRequest request);

}
